﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Kaiser.Modules.Hiner.Models;
using Kaiser.Modules.Hiner.Services;
using Kaiser.Modules.Hiner.Models.Product;
using Kaiser.Modules.Hiner.Models.Product.SearchModels;
using Kaiser.Models;
using Kaiser.Services;

namespace Kaiser.Modules.Hiner.Repositories
{
    public interface IProductRepositorie : IRepositorieBase<ProductBase>
    {
        DataGrid<ProductBase> SearchProduct(ProductSearch search, PagingInfo pageinfo);

        DataTable GetProductList(ProductSearch search, PagingInfo pageinfo);

        DataTable GetProductBase(string hdeCode);

        IList<Photo> GetProductPhotoList(string objectID);
        #region 上传
        /// <summary>
        /// 上传查询
        /// </summary>
        /// <param name="search"></param>
        /// <param name="pageinfo"></param>
        /// <returns></returns>
        DataGrid<Attachment> GetAttachmentList(AttachmentSearch search, PagingInfo pageinfo);

       

        /// <summary>
        /// 删除
        /// </summary>
        void DeleteAttachment(string pid);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        int InsertAttachment(Attachment model);


        Attachment GetAttachment(string pid);
        #endregion

        bool VaidHinerCode(string code, string id);
        bool ValidHDECode(string code, string id);
    }
}
